import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import { getDicts } from "@/api/system/dict/data"

// 引入uView UI
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 引入全局样式
import '@/styles/global.scss'

// 引入工具类
import platform from '@/utils/platform.js'
import performance from '@/utils/performance.js'
import request from '@/utils/request.js'

// 挂载到Vue原型上
Vue.prototype.$platform = platform
Vue.prototype.$performance = performance
Vue.prototype.$api = request

Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.getDicts = getDicts

App.mpType = 'app'

const app = new Vue({
  ...App
})

app.$mount()
